package com.mail.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mail.bean.EmailInfo;
import com.mail.dao.IEmailInfoDao;
import com.mail.service.IEmailInfoService;


@Service
public class EmailInfoServiceImpl implements IEmailInfoService {
    @Autowired
    private IEmailInfoDao emailInfoDao;

    public void save(String[] values) {
        emailInfoDao.save(values);
    }

    public List<EmailInfo> queryList(String address) {
        return emailInfoDao.queryEmail(address);
    }
}
